package com.xbongbong.pro.statistic.pojo.vo;

import com.xbongbong.paas.toolbox.wrap.BaseVO;
import com.xbongbong.pro.statistic.pojo.DataWarningFieldAttrPojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName SummaryAttrVO
 * @Description 汇总字段
 * @Author mengna.Deng
 * @Date 2021/4/16 15:47
 * @Version 1.0
 */
@Setter
@Getter
@ToString
public class SummaryAttrVO extends BaseVO {
    private static final long serialVersionUID = 6393820252288138221L;
    /**
     * 汇总字段
     **/
    private List<DataSourceObjectVO> summaryAble;

    private List<DataWarningFieldAttrPojo> fieldAttrArray;

    public SummaryAttrVO(){
        summaryAble = new ArrayList<>();
    }

    public  void addSummaryAble(DataSourceObjectVO  dataSourceObjectVO){
        this.summaryAble.add(dataSourceObjectVO);
    }

    public  void addFieldConditionList(List<DataWarningFieldAttrPojo>  dataWarningFieldAttrPojos){
        this.fieldAttrArray.addAll(dataWarningFieldAttrPojos);
    }
}
